

#ifndef  _MODBUS_H
#define  _MODBUS_H




int32_t uart485_init( dw_uart_regs_t * puart, uint32_t baudrate);

int32_t uart485_write( dw_uart_regs_t * puart, uint8_t val );
uint8_t uart485_read( dw_uart_regs_t * puart );

//读取指令
uint32_t modbus_read(uint8_t command,uint8_t addr,uint8_t reg_num );










#endif
